import Layout from '@/layout'

const pointsRouter = {
  path: '/points',
  component: Layout,
  redirect: '/points/point_type',
  name: 'Points',
  meta: {
    title: '积分管理',
  },
  children: [
    {
      path: 'point_type',
      name: 'PointType',
      meta: { title: '积分类型' },
      component: () => import('@/views/points/point_type'),
    },
    {
      path: 'recharge',
      name: 'Recharge',
      meta: { title: '客户充值'},
      component: () => import('@/views/points/recharge'),
    },
    {
      path: 'point_consume',
      name: 'PointConsume',
      meta: { title: '积分消费' },
      component: () => import('@/views/points/point_consume'),
    },
    // {
    //   path: 'discount_card',
    //   name: 'DiscountCard',
    //   meta: { title: '优惠卡' },
    //   component: () => import('@/views/points/discount_card'),
    // }
  ]
}

export default pointsRouter